import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index.js";

import { enable, isEnabled, disable } from '@tauri-apps/plugin-autostart';
// when using `"withGlobalTauri": true`, you may use
// const { enable, isEnabled, disable } = window.__TAURI__.autostart;

// Enable autostart
await enable();
// Check enable state
console.log(`registered for autostart? ${await isEnabled()}`);

const app =createApp(App)
app.use(router);
app.mount('#app').$nextTick(() => {
    // Use contextBridge
  /*   window.ipcRenderer.on('main-process-message', (_event:any, message:any) => {
      console.log(message)
    }) */
  })

